package com.eregg.spring.cloud.zuul;

import com.eregg.spring.cloud.zuul.filter.AccessFilter;
import com.netflix.zuul.ZuulFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
public class MicroservicegatewayZuulApplication {

	@Bean
	public ZuulFilter zuulFilter(){
		return new AccessFilter();
	}
	public static void main(String[] args) {
		SpringApplication.run(MicroservicegatewayZuulApplication.class, args);
	}
}
